import {getCarbrandList} from '../../api/offical';
import {INIT_BRANDLLIST} from '../types/offical.type';
//获取首页的数据

export const getBrandList  = () => {
    return (dispatch:any) => {
        getCarbrandList().then(res => {
            if(res.data.code === 1){
                dispatch({
                    type:INIT_BRANDLLIST,
                    list:res.data.data
                })
            }
        })
    }
}

export const add = () => {
    return {
        type:'',
        count:1
    }
}




// mapDispatchToProps = (dispatch) => {
//     getBrandList()(dispatch)
// }